/* 页面高度 */
.min-full-height{
	min-height: calc(100vh - var(--window-top) - var(--window-bottom))
}
/* 导航条设为 custom时使用这个，把状态栏高度也去掉 */
.min-full-height-no-nav{
	min-height: calc(100vh - var(--window-top) - var(--window-bottom) - var(--status-bar-height))
}
/* 导航条设为 custom时使用这个占位样式，避免页面元素上沉 */
.top-holder{
	 height: var(--status-bar-height);
	 width: 100%;
}
/* 横向flex */
.flex-row{
	display: flex;
	flex-direction: row;
}
/* 竖直flex */
.flex-col{
	display: flex;
	flex-direction: column;
}
/* 上下左右居中 */
.flex-center{
	display: flex;
	align-items: center;
	justify-content: center;
}
/* 横向flex 竖直居中 */
.flex-row-center{
	display: flex;
	flex-direction: row;
	align-items: center;
}
/* 竖直flex,横向居中 */
.flex-col-center{
	display: flex;
	flex-direction: column;
	align-items: center;
}
/* 定位 - 固定顶部 */
.fixed-top {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 1030;
}
/* 定位 - 固定底部 */
.fixed-bottom {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1030;
}
/* 文本行数限制 */
.line-1 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.line-2 {
    -webkit-line-clamp: 2;
}
.line-3 {
    -webkit-line-clamp: 3;
}
.line-4 {
    -webkit-line-clamp: 4;
}
.line-5 {
    -webkit-line-clamp: 5;
}
.line-2, .line-3, .line-4, .line-5 {
    overflow: hidden;
	word-break: break-all;
    text-overflow: ellipsis; 
    display: -webkit-box; // 弹性伸缩盒
    -webkit-box-orient: vertical; // 设置伸缩盒子元素排列方式
}
/* 去除webkit的默认样式 */
.fix-ios-appearance {
	-webkit-appearance:none;
}
/* 屏幕下的 1px 边框 */
.el-border,
.el-border-bottom,
.el-border-left,
.el-border-right,
.el-border-top,
.el-border-top-bottom {
	position: relative
}
.el-border-bottom:after,
.el-border-left:after,
.el-border-right:after,
.el-border-top-bottom:after,
.el-border-top:after,
.el-border:after {
	/* #ifndef APP-NVUE */
	content: ' ';
	/* #endif */
	position: absolute;
	left: 0;
	top: 0;
	pointer-events: none;
	box-sizing: border-box;
	-webkit-transform-origin: 0 0;
	transform-origin: 0 0;
	/* 多加0.1%，能解决有时候边框缺失的问题 */
	width: 199.8%;
	height: 199.7%;
	transform: scale(0.5, 0.5);
	border: 0 solid #808080;
	z-index: 2;
}
.el-border-top:after {
	border-top-width: 1px
}
.el-border-left:after {
	border-left-width: 1px
}
.el-border-right:after {
	border-right-width: 1px
}
.el-border-bottom:after {
	border-bottom-width: 1px
}
.el-border-top-bottom:after {
	border-width: 1px 0
}
.el-border:after {
	border-width: 1px
}
/* clearfix */
.clearfix:after {
	/* #ifndef APP-NVUE */
	content: '';
	/* #endif */
	display: table;
	clear: both
}
/* 高斯模糊tabbar底部处理 */
.blur-effect-inset {
	width: 100vw;  
	height: var(--window-bottom);   
	background-color: #FFFFFF;  
}
/* 去除button的所有默认样式 */
.reset-button {
	padding: 0;
	font-size: inherit;
	line-height: inherit;
	background-color: transparent;
	color: inherit;
}
.reset-button::after {
   border: none;
}
/* 各种hover点击反馈相关的类名 */
.hover-class {
	opacity: 0.6;
}
.cell-hover {
	background-color: #f7f8f9!important;
}
.subject_bgm {
	width: 100%;
	background-size: 100%;
}
.common-search-box {
	background-color: #FFFFFF;
	padding: 30rpx;
}
/*
 *  uni-app 表格样式表
 *  作者:helang
 *  地址：https://ext.dcloud.net.cn/plugin?id=3713
*/

.h-table{
	margin-top: 10px;
	/* 行 */
	.h-tr{
		box-sizing: border-box;
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: flex-start;
		align-items: stretch;
		align-content: center;
		
		border-color: #ccc;
		border-style: solid;
		border-width: 0;
		border-top-width: 1px;
		border-left-width: 1px;
		border-bottom-width: 1px;
		color: #333;
		
		/* 等比分列，1-6列 */
		@for $i from 1 through 6
		{
			&-#{$i}{
				>.h-td{
					width:(100% / $i);
				}
			}
		}
		
		+ .h-tr{
			border-top-style: none;
		}
	}
	/* 单元格 */
	.h-td{
		box-sizing: border-box;
		padding: 10px;
		word-break:break-all;
		border-color: #ccc;
		border-style: solid;
		border-width: 0;
		border-right-width: 1px;
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: center;
		align-items: center;
		align-content: center;
		min-height: 64rpx;
		text-align: center;
		
		/* 跨列 */
		&-colspan{
			flex-grow: 1;
			width:0;
		}
		
		&-rowspan{
			// border: none;
			border-right-width: 0;
			padding: 0 !important;
			flex-wrap: wrap !important;
			
			>.h-tr{
				width: 100%;
				border-width: 0;
				
				.h-td{
					border-right-width: 1px;
				}
				
				& + .h-tr{
					border-top-width: 1px;
					border-top-style: solid;
				}
			}
		}
		
		/* 内容顶部对齐 */
		&-top{
			align-items: flex-start;
			align-content:flex-start;
		}
		/* 内容底部对齐 */
		&-bottom{
			align-items: flex-end;
			align-content:flex-end;
		}
		/* 内容左边对齐 */
		&-left{
			justify-content: flex-start;
		}
		/* 内容右边对齐 */
		&-right{
			justify-content: flex-end;
		}
	}
	/* 表头 */
	.h-thead{
		background-color: #e6e6e6;
	}
	
	.not-data {
	  padding: 30rpx 0;
	  color: $uni-text-color-grey;
	}
	
	/* 表格虚线 */
	&-dashed{
		.h-tr{
			border-top-style: dashed;
			border-left-style: dashed;
			border-bottom-style: dashed;
		}
		.h-td{
			border-right-style: dashed;
		}
		
		.h-td-rowspan{
			.h-tr + .h-tr{
				border-top-style: dashed;
			}
		}
	}
	
	/* 表格主题 Map，颜色摘自 Bootstrap */
	$theme-table:(
		primary:(
			color:#fff,
			bgColor:#337ab7,
			border:#2e6da4
		),
		success:(
			color:#fff,
			bgColor:#5cb85c,
			border:#4cae4c
		),
		info:(
			color:#fff,
			bgColor:#5bc0de,
			border:#46b8da
		),
		warning:(
			color:#fff,
			bgColor:#f0ad4e,
			border:#eea236
		),
		danger:(
			color:#fff,
			bgColor:#d9534f,
			border:#d43f3a
		)
	);
	
	/* 生成主题代码 */
	$theme-table-keys:map-keys($theme-table);
	@each $k in $theme-table-keys {
		$item:map-get($theme-table,$k);
		&-#{$k}{
			.h-tr{
				border-top-color: map-get($item,border);
				border-left-color: map-get($item,border);
				border-bottom-color: map-get($item,border);
				color: map-get($item,bgColor);
			}
			.h-td{
				border-right-color: map-get($item,border);
				
			}
			.h-thead{
				background-color: map-get($item,bgColor);
				color: map-get($item,color);
			}
		}
	}
}